package com.skwyb.form.bean.req.admin;

import com.skwyb.form.bean.req.BaseSaveRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Data
@EqualsAndHashCode(callSuper = true)
public class SaveMenuReq extends BaseSaveRequest {
    @ApiModelProperty("id")
    @Length(max = 36, message = "id too long")
    private String id;

    @ApiModelProperty("菜单名称")
    @Length(max = 255, message = "name too long")
    private String name;

    @ApiModelProperty("菜单URL")
    @Length(max = 255, message = "funUrl too long")
    private String funUrl;

    @ApiModelProperty("上级菜单ID")
    @Length(max = 36, message = "parentId too long")
    private String parentId;

    @ApiModelProperty("排序")
    @Range(min = 0, max = 1000, message = "sort is illegal")
    private Integer sort = 999;

    @ApiModelProperty("菜单类型，1菜单，2页面，3功能")
    @Length(max = 10, message = "type too long")
    private String type;

    @ApiModelProperty("样式类")
    @Length(max = 255, message = "className too long")
    private String className;
}